#ifndef __MC_REGULATOR_H_
#define __MC_REGULATOR_H_

#ifdef __cplusplus
extern "C"{
#endif

#include "mc_math.h"


typedef struct{
    IntDec_t     hKp;
    IntDec_t     hKi;
    s16     hErr_k;
    s16     hSatMax;
    s16     hSatMin;
    s16     hOutput;
}PropInte_t, *pPropInte_t;

s16 PI_Controller(s16 cmd, s16 fb, pPropInte_t pPI);
s16 PI_ControllerPLL(s16 cmd, s16 fb, pPropInte_t pPI);

#ifdef __cplusplus
}
#endif
    
#endif
